package com.example.back.controller.otd;

import com.example.back.entity.otd.Videos;
import com.example.back.mapper.otd.VideoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
public class VideoController {
    @Autowired
    private VideoMapper videoMapper;
    @GetMapping("/video")
    public ArrayList<Videos> queryVideo()
    {
      return videoMapper.getVideos();
    }
}
